// $Header: $

using System;
using System.Data;
using System.Collections.Generic;

namespace LogParser.DA
{
    /// <summary>
    /// Summary description for LogParser.DA.ClassListModel.
    /// </summary>
    public class PointValuesModel
    {
        #region Private Member Variables

        DA.DataObjects.PointValuesDSTableAdapters.PointValuesTableAdapter pvta;

        #endregion

        #region Constructor
        /// <summary>
        /// Initializes a new instance of the <see cref="ClassListModel"/> class.
        /// </summary>
        public PointValuesModel()
        {
            Initialize();
        }


        public void Initialize( )
        {
            pvta = TableAdapters.PointValuesTableAdapter();
        }

        #endregion

        #region Public Properties

        #endregion

        #region Private Properties

        #endregion

        #region Public Member Functions


        public List<GameObjects.PointValue> GetPointValuesList( )
        {
            List<GameObjects.PointValue> returnList = new List<LogParser.GameObjects.PointValue>();

            DA.DataObjects.PointValuesDS.PointValuesDataTable pvdt = pvta.GetData();

            foreach ( DA.DataObjects.PointValuesDS.PointValuesRow dr in pvdt.Rows )
            {
                GameObjects.PointValue tempPointValue = new LogParser.GameObjects.PointValue();

                tempPointValue.PointValueID = dr.PointValueId;
                tempPointValue.LongName = dr.PointValueLongName;
                tempPointValue.ShortName = dr.PointValueShortName;
                tempPointValue.Value = dr.PointValue;

                returnList.Add( tempPointValue );

            }

            return returnList;

        }

        #endregion

        #region Private Member Functions

        #endregion
    }
}

#region VSS Log

/*
 * $Log: $
 */

#endregion VSS Log